import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { WithdrawQrcodeVo, WithdrawQrcodeForm, WithdrawQrcodeQuery } from '@/api/pay/qrcode/types';

/**
 * 获取提现二维码信息
 * @param id
 */
export const getWithdrawQrcode = (): AxiosPromise<WithdrawQrcodeVo> => {
  return request({
    url: '/lawyer/userWithdraw/getWithdrawQrcode',
    method: 'get'
  });
};

/**
 * 修改提现二维码信息
 * @param data
 */
export const updateWithdrawQrcode = (data: WithdrawQrcodeForm) => {
  return request({
    url: '/lawyer/userWithdraw/updateWithdrawQrcode',
    method: 'post',
    data: data
  });
};
